<?php

//Route::group(['namespace'=>'App\Http\Controllers\Api\Task','prefix'=>'api','middleware'=>'WebAuth'],function(){

Route::group(['namespace'=>'App\Http\Controllers\Api\Diagnose','prefix'=>'api','middleware'=>'WebAuth'],function(){

    /*******************图文问诊******************/
    //获取问诊列表
    Route::any('graphic/get_list', 'GraphicController@getList');
    //获取提问详情
    Route::any('graphic/get_questions', 'GraphicController@getQuestions');
    //图文问诊提问
    Route::any('graphic/questions', 'GraphicController@questions');

    Route::any('camera/get_online_doctors', 'CameraController@onlineDoctorsList');
    Route::any('camera/generate_order', 'CameraController@generate_camera_order');
    Route::any('camera/get_available_order', 'CameraController@getUserPaidNotUsedOrder');
    Route::any('camera/gen_trtc_sign', 'CameraController@genTrtcUserSgin');

    //追加提问
    Route::any('graphic/additional', 'GraphicController@additional');
});

//登录中间件
Route::group(['namespace'=>'App\Http\Controllers\Api\Diagnose','prefix'=>'api'],function(){
    //小程序支付回调
    Route::any('graphic/applet_callback', 'PayCallbackController@appletCallback');
    Route::any('camera/camera_wechat_callback', 'PayCallbackController@cameraDiagnoseWechatCallBack');

    //阿里云支付回调
    Route::any('graphic/alipay_callback', 'PayCallbackController@alipayCallback');
});